.w {
    width: 1200px;
    margin: 0 auto;
}

body {
    font-family: "Microsoft YaHei";
    background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);

}

.color-bg-1 {
    background: #97d9d370;
}

.color-bg-2 {
    background: #cbcadc70;
}

.color-bg-3 {
    background: #e4dad570;
}

.color-bg-4 {
    background: #e0e99e57;
}

.color-bg-5 {
    background: #e7c7c857;
}

.color-bg-vip {
    background: rgb(238, 172, 172);
}

// 顶栏

//顶栏提示
.head-top {
    background: #dfebea;

    .w {
        height: 30px;

        li {
            font-size: 16px;
            float: left;
            line-height: 30px;
            margin-right: 10px;
            margin-left: 10px;

            &:last-child {
                float: right;
            }
        }

    }
}

//顶栏logo
.head-main {
    .w {
        height: 85px;

        // logo
        a {
            float: left;
            height: 45px;
            width: 140px;
            margin: 20px 20px;
            line-height: 45px;
            text-align: center;
            font-size: 24px;
            text-decoration: none;
        }

        // 宣传字
        p {
            float: right;
            height: 45px;
            width: 300px;
            margin: 20px 20px;
            line-height: 45px;
            text-align: center;
            font-size: 20px;
            text-decoration: none;
        }

        // 小猫
        div {
            border-radius: 10px;
            margin-right: 10px;
            overflow: hidden;
            float: right;
            width: 100px;
            height: 71px;
            margin: 7px 0;

            &:hover img:nth-child(1) {
                display: none;
            }

            &:active img:nth-child(-n + 2) {
                display: none;
            }

            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

//导航栏
.daohang {
    .l {
        float: left;
        width: 230px;
        margin-right: 10px;

        span {
            display: block;
            width: 100%;
            height: 40px;
            font-size: 16px;
            line-height: 40px;
            text-align: center;
            color: #fff;
            background: #05e5c15e;
        }

        ul {
            background: #a2c8e99c;

            li {
                height: 36px;
                line-height: 36px;

                a {
                    display: block;
                    color: #fff;
                    font-size: 16px;
                    padding: 0 20px 0 10px;
                    text-decoration: none;
                    transition: all 0.2s;

                    &::after {
                        float: right;
                        content: ">";
                    }

                    &:hover {
                        color: darksalmon;
                        padding: 0 10px 0 20px;
                        background-color: rgba(106, 104, 120, 0.5);
                    }
                }

            }
        }
    }

    .r {
        float: right;
        width: 960px;

        .t {
            width: 100%;
            height: 50px;

            ul {
                overflow: hidden;
                border-radius: 10px;
                width: 100%;
                height: 40px;
                background-color: #05e5c15e;
                display: flex;

                li {
                    flex: 1;
                    height: 40px;
                    line-height: 40px;
                    float: left;
                    text-align: center;

                    a {
                        font-size: 16px;
                        display: block;
                        text-decoration: none;

                        &:hover {
                            background: #f0d3d3;
                        }
                    }
                }
            }
        }

        .m {
            // 960 420
            background: #ffffff25;
            width: 100%;

            .slide {
                height: 420px;
            }

            .carousel-inner {
                img {
                    height: 420px;
                    margin: 0 auto;
                }
            }

            .carousel-control {
                width: 90px;
                background-image: none;
            }



        }
    }
}

// 小导航栏
.small-daohang {
    display: flex;
    height: 120px;

    div {
        flex: 1;
        padding: 10px 15px;

        div {
            width: 100%;
            height: 100%;
            border-radius: 15px;

            img {
                float: left;
                margin: 0px 10px 0px 0px;
                width: 80px;
                height: 80px;
                border-radius: 10px;
                background: #000;
            }

            h2 {
                text-align: center;
                float: right;
                margin: 0;
                width: 90px;
                font-size: 18px;
                padding: 20px 0 10px;
                background: #ffffff2b;
                border-top-left-radius: 10px;
                border-top-right-radius: 10px;

            }

            p {
                text-align: center;
                float: right;
                width: 90px;
                background: #ffffff2b;
                padding-bottom: 15px;
                border-bottom-left-radius: 10px;
                border-bottom-right-radius: 10px;
            }
        }
    }
}

// 模块搜索栏
.daohang-head {
    margin: 10px auto 10px;
    padding: 0 20px;
    position: relative;
    height: 45px;
    width: 1200px;
    border-radius: 12px;
    ;

    h4 {
        margin: 0;
        padding: 0;
        display: inline-block;
        font-size: 20px;
        font-weight: 700;
        line-height: 45px;
    }

    a {
        line-height: 45px;
        float: right;
        text-decoration: none;
        margin: 0 0 0 20px;
    }

    input {
        margin: 7px 0;
        height: 31px;
        width: 200px;
        float: right;
        border-radius: 15px;
        text-indent: 30px;
    }

    span {
        position: absolute;
        right: 238px;
        top: 12px;
        font-family: "iconfont";
        font-size: 16px;
    }
}

//动漫区模块
.mokuai-dongman {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    background: #c0edeb82;

    div {
        margin: 5px;
        width: 390px;
        height: 283px;
        border-radius: 10px;
        .color-bg-1();

        div:nth-of-type(1) {
            width: 190px;
            height: 263px;
            float: left;
            margin: 10px;


            img {
                float: left;
                width: 190px;
                height: 253px;
            }
        }

        div:nth-of-type(2) {
            float: right;
            width: 173px;
            height: 280px;
            margin: 0;

            h4 {
                float: left;
                width: 160px;
                text-align: center;
                margin: 20px 0 10px;
            }

            p {
                height: 140px;
                width: 160px;
                margin: 0;
                padding: 0;
            }

            p:nth-of-type(1) {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 7;
                -webkit-box-orient: vertical;

            }

            p:nth-of-type(2) {
                height: 20px;
            }

            a {
                margin: 3px;
                text-align: center;
                border-radius: 5px;
                display: inline-block;
                width: 70px;
                height: 20px;
                background: rgb(196, 230, 165);

            }

            .color-bg-vip {
                .color-bg-vip()
            }
        }




    }
}

//电影区模块
.mokuai-dianying {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    background: #c0edeb82;

    div {
        margin: 5px;
        width: 390px;
        height: 283px;
        border-radius: 10px;
        .color-bg-2();

        div:nth-of-type(1) {
            width: 190px;
            height: 263px;
            float: left;
            margin: 10px;

            img {
                float: left;
                width: 190px;
                height: 253px;
            }
        }

        div:nth-of-type(2) {
            float: right;
            width: 173px;
            height: 280px;
            margin: 0;

            h4 {
                float: left;
                width: 160px;
                text-align: center;
                margin: 20px 0 10px;
            }

            p {
                height: 140px;
                width: 160px;
                margin: 0;
                padding: 0;
            }

            p:nth-of-type(1) {
                overflow: hidden;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-line-clamp: 7;
                -webkit-box-orient: vertical;

            }

            p:nth-of-type(2) {
                height: 20px;
            }

            a {
                margin: 3px;
                text-align: center;
                border-radius: 5px;
                display: inline-block;
                width: 70px;
                height: 20px;
                background: rgb(196, 230, 165);

            }

            .color-bg-vip {
                .color-bg-vip()
            }
        }




    }
}

//f漫画区模块
.mokuai-manhua {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    background: #c0edeb82;

    div {
        width: 290px;
        height: 290px;
        border-radius: 10px;
        margin: 5px;


        a {
            display: block;
            text-align: center;
            width: 100%;
            height: 100%;
            text-decoration: none;
            .color-bg-3();
            border-radius: 10px;

            img {
                margin-top: 10px;
                width: 80%;
                border-radius: 10px;
            }

            h4 {
                margin: 10px 0 10px;
            }

            p {
                display: inline-block;
                height: 40px;
                width: 200px;
            }
        }

    }
}

//x 最底部
.body-foot {
    width: 100%;
    margin: 50px 0 50px;

    .w {
        div {

            dl {
                float: left;
                margin: 10px 30px;

                dt {
                    margin: 5px 0;
                }

                dd {
                    text-align: center;
                    margin: 3px 0;
                }

            }

            .textnumber {
                float: right;
                margin-right: 60px;
            }
        }
    }
}

//z回顶部
.hdb {
    width: 80px;
    height: 180px;
    position: fixed;
    bottom: 40px;
    right: 35px;
    border-radius: 20px;

    a {
        display: inline-block;
        width: 80px;
        height: 180px;
        border-radius: 30px;
    }
}